package com.b2b2c.store.single.controller;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.b2b2c.store.single.entity.Store;
import com.b2b2c.store.single.logic.StoreLogic;
import com.b2b2c.store.single.mapper.StoreMapper;

@RestController
@CrossOrigin
public class StoreController {

	@Autowired
	private HttpServletRequest req;
	
	
	@Resource
	private StoreMapper storeMapper;
	

	@RequestMapping("/store/storeList")
	public Map<String, ?> getOrderList() {
		
		StoreLogic store = new StoreLogic(req);
		
		
		List<Store> data = store.getList();
		
		
		System.out.println(data);
		
		return null;
	}
	
}
